package com.link510.aitools.activity.device;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.link510.aitools.R;
import com.link510.aitools.framework.activity.BaseAcitivity;

public class DeviceAddActivity extends BaseAcitivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_add);
        setTitle(R.string.device_add);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.robot_main_right_topmenu, menu);
        return super.onCreateOptionsMenu(menu);
    }

    // 菜单的监听方法
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {

        if (item.getItemId() == R.id.select_device_item) {
            finish();
        }

        return true;
    }
}